package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * GPS日志
 *
 * @author Yancy
 * @since 2024-11-26
 */
@Data
@TableName("device_gps_logs")
@ApiModel(value = "DeviceGpsLogs对象", description = "GPS日志")
public class DeviceGpsLogs {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("设备编号")
    @TableField("device_num")
    private String deviceNum;

    @ApiModelProperty("经度")
    @TableField("longitude")
    private String longitude;

    @ApiModelProperty("纬度")
    @TableField("latitude")
    private String latitude;

    @ApiModelProperty("通道号")
    @TableField("channel_code")
    private String channelCode;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    public static final String ID = "id";

    public static final String DEVICE_NUM = "device_num";

    public static final String LONGITUDE = "longitude";

    public static final String LATITUDE = "latitude";

    public static final String CHANNEL_CODE = "channel_code";

}
